package demo3;

public class Test {
    public static void main(String[] args) {
        Ragdoll rd = new Ragdoll();

        Teddy td = new Teddy();


        Animal animal = new LiHua();
       // animal.eat();
       // ((Teddy) animal).touch();
     //   test(animal);
        System.out.println(animal.name);
        animal.show();


    }


    public static void test(Animal animal) {
        animal.show();

    }
}
